#include "dominion.c"
#include "assert.h"
#include "stdio.h"
#include "rngs.c"

void checkGardenCardPlay( struct gameState *state );

int main(){
	int *cards = kingdomCards(7,8,9,10,11,12,13,14,15,16);
	struct gameState *state = newGame();
	
	initializeGame(4, cards, -1, state);
	
	for (int i = 0; i < 20; i++){
		checkGardenCardPlay( state );
	}
	
	return 0;
}

void checkGardenCardPlay( struct gameState *state ) {
	int choice1 = (int)(Random() * treasure_map);
	int choice2 = (int)(Random() * treasure_map);
	int choice3 = (int)(Random() * treasure_map);
	int handPos = (int)(Random() * 5);
	int card = gardens;
	if ( cardEffect( card, choice1, choice2, choice3, state, handPos, 0 ) != -1){
		printf("Somehow, a \"return -1\" statement failed to return -1.\n");
		assert(0);
	}
}